* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #20201f;
  --muted: #70706c;
  --wood: #a96f45;
  --wood-light: #ead5bf;
  --accent: rgb(0, 0, 0);
  --accent-soft: #f2efff;
}

.page-about {
  --accent: #0bac44;
  --accent-soft: #edf7f0;
}

.page-activities {
  --accent: #3679c9;
  --accent-soft: #edf5ff;
}

.page-join {
  --accent: #e16a51;
  --accent-soft: #fff1ec;
}

.page-signup {
  --accent: var(--wood);
  --accent-soft: #f0dfcc;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 5vw;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  animation: page-enter 260ms ease both;
}

main {
  flex: 1;
}

.site-header,
main,
footer {
  width: min(100%, 1100px);
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #f0efed;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid #bd8960;
  border-radius: 6px;
  background-color: #ead5bf;
  background-image: repeating-linear-gradient(0deg, rgb(125 83 52 / 5%) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgb(125 83 52 / 4%) 0 1px, transparent 1px 5px);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tree-ring {
  fill: #f7eddf;
  stroke: #777d7e;
  stroke-width: 2.5;
}

.tree-trunk {
  fill: #777d7e;
}

.tree-leaf-dark {
  fill: #179b58;
}

.tree-leaf-light {
  fill: #86c927;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.brand-name strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 750;
}

.brand-name small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: #f7f7f6;
}

.tabs a {
  padding: 8px 15px;
  border-radius: 999px;
  color: #555550;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.tabs a:hover,
.tabs a.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 2px 9px rgb(30 30 25 / 8%);
}

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 45px;
  padding: 54px 0 65px;
}

.hero-copy {
  padding-left: clamp(0px, 3vw, 32px);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.99;
  letter-spacing: -0.075em;
}

h1 span {
  color: var(--accent);
}

.page-home h1 .colourful-word {
  color: transparent;
  background: none;
  white-space: nowrap;
}

.colourful-word > span {
  display: inline-block;
  animation: letter-pop 650ms cubic-bezier(.2, .8, .25, 1.35) both;
}

.colourful-word > span:nth-child(1) { color: #ef476f; animation-delay: 0ms; }
.colourful-word > span:nth-child(2) { color: #f36b4a; animation-delay: 75ms; }
.colourful-word > span:nth-child(3) { color: #ff9f1c; animation-delay: 150ms; }
.colourful-word > span:nth-child(4) { color: #e9b51d; animation-delay: 225ms; }
.colourful-word > span:nth-child(5) { color: #43aa8b; animation-delay: 300ms; }
.colourful-word > span:nth-child(6) { color: #277da1; animation-delay: 375ms; }
.colourful-word > span:nth-child(7) { color: #5363bc; animation-delay: 450ms; }
.colourful-word > span:nth-child(8) { color: #7b2cbf; animation-delay: 525ms; }
.colourful-word > span:nth-child(9) { color: #d3449c; animation-delay: 600ms; }

@keyframes letter-pop {
  0% {
    opacity: 0;
    transform: translateY(.45em) rotate(-18deg) scale(.55);
  }

  65% {
    opacity: 1;
    transform: translateY(-.12em) rotate(7deg) scale(1.12);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

.intro {
  max-width: 500px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.art-scene {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 30px;
  background: #f8f6f2;
}

.canvas {
  position: absolute;
  width: 145px;
  height: 170px;
  border: 9px solid #d1a178;
  border-radius: 3px;
  background: #fffdf9;
  box-shadow: 0 12px 22px rgb(79 52 31 / 13%);
}

.canvas i,
.canvas b,
.canvas span,
.mini-canvas i,
.mini-canvas b,
.mini-canvas span {
  position: absolute;
  display: block;
}

.canvas-one {
  top: 65px;
  left: 19%;
  transform: rotate(-10deg);
}

.canvas-one i {
  top: 21px;
  left: 25px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f3bd4f;
}

.canvas-one b {
  right: 12px;
  bottom: 15px;
  width: 85px;
  height: 40px;
  border-radius: 55% 45% 8px 8px;
  background: #ec7662;
  transform: rotate(-16deg);
}

.canvas-one span {
  top: 62px;
  left: 10px;
  width: 100px;
  height: 14px;
  border-radius: 50%;
  background: #78b5a1;
  transform: rotate(30deg);
}

.canvas-two {
  top: 80px;
  right: 13%;
  width: 128px;
  height: 146px;
  transform: rotate(9deg);
}

.canvas-two i {
  top: 18px;
  left: 17px;
  width: 72px;
  height: 45px;
  border-radius: 70% 30% 60% 40%;
  background: #8e80d8;
  transform: rotate(-30deg);
}

.canvas-two b {
  right: 11px;
  bottom: 16px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #f2be52;
}

.canvas-two span {
  top: 59px;
  left: 16px;
  width: 85px;
  height: 12px;
  border-radius: 99px;
  background: #74aacf;
  transform: rotate(35deg);
}

.canvas-three {
  bottom: 38px;
  left: 39%;
  width: 116px;
  height: 126px;
  transform: rotate(5deg);
}

.canvas-three i {
  top: 15px;
  left: 15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #83b68d;
}

.canvas-three b {
  right: 11px;
  bottom: 13px;
  width: 67px;
  height: 47px;
  border-radius: 50% 50% 4px 4px;
  background: #ec8064;
}

.canvas-three span {
  top: 59px;
  left: 9px;
  width: 88px;
  height: 9px;
  border-radius: 99px;
  background: #f1c85b;
  transform: rotate(-24deg);
}

.brush {
  position: absolute;
  z-index: 3;
  width: 13px;
  height: 130px;
  border-radius: 7px;
  background: linear-gradient(90deg, #9f6846 0 18%, #d3a174 18% 82%, #a36e4e 82%);
  box-shadow: 2px 5px 9px rgb(61 45 30 / 20%);
}

.brush::before {
  position: absolute;
  top: -26px;
  left: 1px;
  width: 11px;
  height: 30px;
  border-radius: 80% 80% 35% 35%;
  background: #403c3b;
  content: "";
}

.brush::after {
  position: absolute;
  top: 1px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 3px 3px 7px 7px;
  background: #c6c8c5;
  content: "";
}

.brush-one {
  right: 17%;
  bottom: 32px;
  transform: rotate(36deg);
}

.brush-two {
  left: 13%;
  bottom: 17px;
  height: 96px;
  transform: rotate(-35deg);
}

.brush-three {
  right: 28%;
  bottom: 15px;
  height: 105px;
  transform: rotate(56deg);
}

.paint-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.dot-one {
  top: 38px;
  right: 35%;
  background: #e9765e;
}

.dot-two {
  right: 9%;
  bottom: 80px;
  width: 14px;
  height: 14px;
  background: #8a7bd5;
}

.welcome-card,
.feature-card,
.join-panel {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 45px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 28px;
  background: var(--accent-soft);
}

.welcome-card h2,
.feature-card h2 {
  max-width: 500px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.welcome-card p:not(.eyebrow),
.feature-copy p:not(.eyebrow) {
  max-width: 510px;
  margin-bottom: 0;
  color: var(--muted);
}

.quick-links {
  display: grid;
  gap: 4px;
}

.quick-links a,
.text-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgb(32 32 31 / 13%);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.quick-links a span,
.text-link span {
  color: var(--accent);
  font-size: 20px;
  transition: transform 160ms ease;
}

.quick-links a:hover span,
.text-link:hover span {
  transform: translate(3px, -3px);
}

.inner-page {
  padding: 75px 0 35px;
}

.page-heading {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.page-heading h1,
.join-copy h1 {
  font-size: clamp(3.1rem, 8vw, 5.5rem);
}

.page-heading .intro {
  margin: 0 auto;
}

.feature-card {
  min-height: 325px;
}

.mini-art,
.join-art {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
}

.mini-canvas {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 155px;
  height: 178px;
  border: 10px solid #d0a076;
  background: #fffdf9;
  box-shadow: 0 10px 20px rgb(79 52 31 / 15%);
  transform: translateX(-50%) rotate(-7deg);
}

.mini-canvas i {
  top: 20px;
  left: 20px;
  width: 72px;
  height: 60px;
  border-radius: 55% 45% 60% 40%;
  background: #f0bd4d;
  transform: rotate(25deg);
}

.mini-canvas b {
  right: 11px;
  bottom: 16px;
  width: 90px;
  height: 55px;
  border-radius: 70% 30% 8px 8px;
  background: #6fae91;
  transform: rotate(-18deg);
}

.mini-canvas span {
  top: 76px;
  left: 13px;
  width: 110px;
  height: 13px;
  border-radius: 99px;
  background: #e87962;
  transform: rotate(23deg);
}

.mini-art .brush-one {
  right: 22%;
  bottom: 17px;
  transform: rotate(42deg);
}

.mini-art .dot-one {
  top: 30px;
  right: 21%;
}

.text-link {
  width: fit-content;
  min-width: 230px;
  margin: 25px auto 0;
  gap: 30px;
  border-bottom-color: #dededb;
}

.activity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 23px;
  border: 1px solid #eee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 25px rgb(36 42 50 / 4%);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 650;
}

.activity-number {
  color: #999;
  font-size: 13px;
  font-weight: 700;
}

.activity-mark {
  margin-left: auto;
  font-size: 17px;
}

.mark-coral { color: #e97963; }
.mark-blue { color: #5d9bce; }
.mark-yellow { color: #e6b84f; }
.mark-green { color: #6eaa86; }

.studio-strip {
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--accent-soft);
}

.studio-strip p {
  margin: 0;
  color: var(--accent);
  font-weight: 650;
}

.studio-strip .brush {
  position: relative;
  bottom: auto;
  right: auto;
  left: auto;
  height: 65px;
  transform: rotate(35deg);
}

.studio-strip .brush-two {
  transform: rotate(-35deg);
}

.studio-strip .brush-three {
  transform: rotate(50deg);
}

.join-panel {
  min-height: 420px;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--accent-soft);
}

.join-copy .intro {
  margin-bottom: 18px;
}

.join-note {
  margin: 0 0 24px;
  color: var(--muted);
}

.join-art {
  min-height: 300px;
  background: #fffaf7;
}

.join-art .canvas-one {
  top: 54px;
  left: 31%;
  width: 150px;
  height: 176px;
}

.join-art .brush-one {
  right: 17%;
  bottom: 22px;
}

.join-art .brush-two {
  left: 14%;
  bottom: 12px;
}

.join-art .dot-one {
  top: 28px;
  right: 24%;
}

.join-art .dot-two {
  right: 10%;
  bottom: 60px;
}

.signup-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.signup-card {
  width: min(100%, 560px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  background: var(--accent-soft);
}

.signup-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.7rem, 7vw, 4.2rem);
}

.signup-intro,
.signup-note {
  color: var(--muted);
}

.signup-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.signup-form label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

.signup-form input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d9d4e7;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.signup-form input:focus {
  border-color: var(--accent);
  outline: 3px solid rgb(169 111 69 / 22%);
}

.password-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.signup-submit {
  justify-self: start;
  margin-top: 12px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.signup-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
}

.signup-note {
  margin: 18px 0 0;
  font-size: 14px;
}

.signup-note a {
  color: var(--accent);
  font-weight: 700;
}

footer {
  padding: 35px 12px 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer {
  width: calc(100% + 10vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 0 -5vw;
  padding: 16px max(24px, 5vw);
  border-top: 1px solid #e5e4e1;
  border-radius: 0;
  background: #f1f0ed;
  text-align: left;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.footer-brand-name {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.footer-brand-name small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  body {
    padding: 0 20px;
  }

  .site-footer {
    width: calc(100% + 40px);
    margin-left: -20px;
    padding-inline: 20px;
  }

  .site-header {
    min-height: 75px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 14px 0;
  }

  .tabs {
    width: 100%;
    justify-content: space-between;
  }

  .tabs a {
    padding: 7px 11px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 55px 0 45px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .art-scene {
    min-height: 320px;
  }

  .welcome-card,
  .feature-card,
  .join-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .inner-page {
    padding-top: 55px;
  }

  .page-heading {
    margin-bottom: 34px;
  }

  .join-panel {
    padding: 30px 24px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 15px;
  }

  .site-footer {
    width: calc(100% + 30px);
    margin-left: -15px;
    padding-inline: 15px;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .tabs {
    gap: 1px;
  }

  .tabs a {
    padding: 7px 9px;
    font-size: 12px;
  }

  .activity-list {
    grid-template-columns: 1fr;
  }

  .activity-list li {
    min-height: 88px;
  }

  .art-scene {
    min-height: 285px;
  }

  .canvas {
    transform: scale(.85);
  }

  .canvas-one {
    left: 13%;
    transform: rotate(-10deg) scale(.85);
  }

  .canvas-two {
    right: 8%;
    transform: rotate(9deg) scale(.85);
  }

  .studio-strip {
    gap: 18px;
  }
}

/* Community demo */
.page-community {
  --accent: #7358b8;
  --accent-soft: #f2efff;
}

.community-page {
  padding-bottom: 55px;
}

.community-notice {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--accent-soft);
  color: #4b4658;
  font-size: 14px;
  animation: community-rise 420ms ease both;
}

.community-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 20px;
}

.account-name {
  padding: 7px 13px;
  border: 1px solid #e4dced;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.artwork-author {
  margin: 0 0 8px;
  color: var(--accent) !important;
  font-size: 12px;
  font-weight: 700;
}

.community-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #eeeaf5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 35px rgb(36 32 50 / 6%);
  animation: community-rise 520ms ease both;
}

.teacher-card {
  animation-delay: 100ms;
}

.community-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.community-description,
.community-hint,
.community-empty {
  color: var(--muted);
  font-size: 14px;
}

.community-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.community-form label {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
}

.community-form input:not([type="file"]),
.community-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ded9e9;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.community-form input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 14px;
}

.community-form textarea {
  resize: vertical;
}

.community-form input:focus,
.community-form textarea:focus,
.comment-form input:focus {
  border-color: var(--accent);
  outline: 3px solid rgb(115 88 184 / 16%);
}

.community-hint,
.community-status {
  margin: 0;
  font-size: 13px;
}

.community-status {
  min-height: 1.4em;
  color: var(--accent);
}

.community-form .button {
  justify-self: start;
  margin-top: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.artwork-feed,
.teacher-notes {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.artwork-post,
.teacher-note-item {
  padding: 18px;
  border: 1px solid #eeeaf5;
  border-radius: 16px;
  background: #fcfbff;
  animation: community-rise 320ms ease both;
}

.artwork-post h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.artwork-post > p,
.teacher-note-item {
  overflow-wrap: anywhere;
}

.artwork-post > p {
  margin: 0 0 12px;
  color: var(--muted);
}

.artwork-post > img {
  display: block;
  width: 100%;
  max-height: 300px;
  margin: 12px 0;
  border-radius: 12px;
  object-fit: contain;
  background: #f3f1f7;
}

.post-comments {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.post-comments p {
  margin: 0;
  color: #58526b;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.comment-form input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #ded9e9;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
}

.comment-form button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.comment-form button:hover {
  transform: translateY(-2px);
  background: #e7e0fb;
}

.teacher-note-item {
  margin: 0;
  color: #58526b;
  font-size: 14px;
  white-space: pre-wrap;
}

@keyframes community-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-notice,
  .community-card,
  .artwork-post {
    animation: none;
  }

  .comment-form button {
    transition-duration: 0.01ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    animation: none;
  }

  .colourful-word > span {
    animation: none;
  }


  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Account dashboard and settings */
.account-header {
  align-items: center;
}

.account-tabs {
  flex-wrap: wrap;
  justify-content: center;
}

.account-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.account-avatar {
  font-size: 18px;
  line-height: 1;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 38px;
  text-align: left;
}

.dashboard-welcome h1 {
  margin-bottom: 12px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.dashboard-welcome .intro {
  margin-bottom: 0;
}

.dashboard-avatar {
  width: 112px;
  height: 112px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid #d8b08d;
  border-radius: 50%;
  background: #f2e4d5;
  box-shadow: 0 8px 24px rgb(79 52 31 / 12%);
  font-size: 56px;
}

.dashboard-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 18px;
}

.dashboard-section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.05em;
}

.settings-shortcut {
  min-width: 0;
  margin: 0;
  padding: 8px 0;
}

.dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-shortcut {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  border: 1px solid #eeeaf5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(36 32 50 / 6%);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-shortcut:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgb(36 32 50 / 11%);
}

.dashboard-shortcut strong {
  font-size: 18px;
}

.dashboard-shortcut > span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.shortcut-icon {
  font-size: 32px;
}

.settings-card {
  max-width: 760px;
  margin-inline: auto;
}

.settings-fieldset {
  min-width: 0;
  margin: 0 0 12px;
  padding: 18px;
  border: 1px solid #e9e3ef;
  border-radius: 16px;
}

.settings-fieldset legend {
  padding: 0 7px;
  font-weight: 750;
}

.avatar-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.avatar-choice {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 10px 5px;
  border: 1px solid #eeeaf5;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}

.avatar-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgb(115 88 184 / 12%);
}

.avatar-choice input {
  accent-color: var(--accent);
}

.avatar-choice span {
  font-size: 30px;
}

.avatar-choice small {
  color: var(--muted);
  font-size: 11px;
}

.shortcut-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-weight: 600;
}

.shortcut-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

@media (max-width: 720px) {
  .dashboard-shortcuts {
    grid-template-columns: 1fr;
  }

  .dashboard-shortcut {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
    text-align: center;
  }

  .dashboard-avatar {
    width: 88px;
    height: 88px;
    align-self: center;
    font-size: 44px;
  }

  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .avatar-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
